//
//  ZYXHomeHeaderView.m
//  RuiBeiKang
//
//  Created by iOS开发1 on 2019/1/4.
//  Copyright © 2019年 JW. All rights reserved.
//

#import "ZYXHomeHeaderView.h"

@implementation ZYXHomeHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)awakeFromNib{
    [super awakeFromNib];
}
- (void)setSearchImg:(UIImage *)searchImg {
    _searchImg = searchImg;
    UIImageView *searchImgView = [[UIImageView alloc] initWithImage:searchImg];
    _searchField.leftView = searchImgView;
    _searchField.leftViewMode = UITextFieldViewModeAlways;
}
@end
